<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/head/common/include/page.jsp" %>
<jsp:useBean id="pojo" class="com.wang.users.pojo.AUsers"/>
<c:set value="${requestScope.response.data.one }" var="users"/>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>用户更新 - 体能测试系统</title>
		<%@ include file="/head/common/include/title.jsp" %>
	</head>
	<body>
		<%@ include file="/head/common/include/header.jsp" %>
		<div class="container">
			<div class="row">
				<div class="col-sm-8 col-sm-offset-1 main">
					<h2 class="col-sm-10 col-sm-offset-1 form-signin-heading text-center">修改个人信息</h2>
	
					<form id="form" class="form-horizontal" method="post"
						action="${rootPath }/head/users/usersUpdateSubmit">
						<input type="hidden" name="operType" value="${requestScope.operType }">
						<input type="hidden" name="id" value="${users.id }">
						
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">邮箱:</label>
							${users.email }
						</div>
						
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">名字:</label>
							<div class="col-sm-8">
								<input type="text" id="trueName" name="trueName" value="${users.trueName }"
									class="form-control" placeholder="名字">
							</div>
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">手机:</label>
							<div class="col-sm-8">
								<input type="text" id="phone" name="phone" value="${users.phone }"
									class="form-control" placeholder="手机">
							</div>
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">qq:</label>
							<div class="col-sm-8">
								<input type="text" id="qq" name="qq" value="${users.qq }"
									class="form-control" placeholder="qq">
							</div>
						</div>
						
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">身份证号:</label>
							<div class="col-sm-8">
								<input type="text" id="idnumber" name="idnumber" value="${users.idnumber }"
									class="form-control" placeholder="身份证号">
							</div>
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">生日:</label>
							<div class="col-sm-8">
								<input type="text" id="birthday" name="birthday" value="${users.birthday }"
									class="form-control" placeholder="生日">
							</div>
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">年级:</label>
							<div class="col-sm-8">
								<input type="text" id="grade" name="grade" value="${users.grade }"
									class="form-control" placeholder="年级">
							</div>
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">学号:</label>
							<div class="col-sm-8">
								<input type="text" id="numb" name="numb" value="${users.numb }"
									class="form-control" placeholder="学号">
							</div>
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-2 control-label">年龄:</label>
							<div class="col-sm-8">
								<input type="text" id="age" name="age" value="${users.age }"
									class="form-control" placeholder="年龄:">
							</div>
						</div>
						
						<div class="control-group">
							<label for="email" class="col-sm-2 control-label">性别:</label>
							<div class="col-sm-8">
								<select name="sex">
									<c:forEach items="${pojo.enumsMap }" var="me" varStatus="stat">
										<c:if test="${fn:startsWith(me.key,'SEX_')}">
											<!-- 拆分,按照-拆分,取最后一个 -->
											<c:set value="${fn:split(me.key, '-')}" var="keys"/>
											<option value="${keys[1] }" ${requestScope.users.sex == keys[1] ? 'selected' : '' }>${me.value }</option>
										</c:if>
									</c:forEach>
								</select>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-2">
								<button class="btn btn-lg btn-primary" type="submit">提交</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
		<%@ include file="/head/common/include/footer.jsp" %>
	</body>
</html>